package com.sun.mapper;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.sun.entity.Storage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author rabbiter
 * @since 2023-01-05
 */
@Mapper
public interface StorageMapper extends BaseMapper<Storage> {
    IPage pageCC(IPage<Storage> page, @Param(Constants.WRAPPER) Wrapper wrapper);

    List<String> cellList();

    List<String> selectStorage(Integer roleId, String name);

    List<HashMap<String,String>> typeList();

    List<String> myCellList(Integer id,String name);

    Integer getCellIdByCellNameAndType(String cell, String storage);

    List<String> getAllCellForAdmin(Integer id, String name);

    List<String> getAllCellForAdmin2(Integer id, String name);
}
